package xyz.csmcool.imuser.mapper;

import org.apache.ibatis.annotations.Select;
import xyz.csmcool.imuser.entity.About;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author csmcool
 * @since 2022-08-03
 */
public interface AboutMapper extends BaseMapper<About> {

    /**
     * 获取最新的关于我们
     * @return
     */
    @Select("SELECT id,about_content aboutContent,about_author aboutAuthor,update_time updateTime,create_time createTime FROM `sjim_about` ORDER BY create_time DESC LIMIT 1")
    About selectLastOne();
}
